<?php
setlocale(LC_ALL, 'zh_CN.UTF8');
return [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'language' => 'zh-CN',
    'timeZone' => 'Asia/Shanghai',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'formatter' => [
        	'dateFormat' => 'yyyy年MM月dd日',
       	],
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=zzgl',
            'username' => 'zzgl',
            'password' => '',
            'charset' => 'utf8',
            'attributes' => [
              PDO::ATTR_PERSISTENT => true,
//              PDO::ATTR_AUTOCOMMIT => false
            ],
            'enableSchemaCache' => !YII_DEBUG,
            'enableProfiling' => YII_DEBUG,
        ],
    ],
];
